<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Frameset//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-frameset.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="ja" lang="ja" id="main">
<head>
	<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
	<title>Window Class</title>
	<link rel="stylesheet" href="../inc/css/style.min.css" />
	<script type="text/javascript" src="../inc/js/lib/jquery-1.11.1.min.js"></script>
	<script type="text/javascript" src="../inc/js/common.js"></script>
</head>
<body>

	<div class="main">

		<h1 class="main__title--h1 main__title--h1--v07">Window Class</h1>
		<ul class="breadcrumb">
			<li>JS Library</li>
			<li>&gt;</li>
			<li>Window Class</li>
		</ul>
		<p>游戏内的窗口。</p>
		<div class="main__section">
			<h2 class="main__title--h2">Constructor</h2>
<pre class="main__pre--code">
Window ()
</pre>
		</div><!-- /main__section -->


		<div class="main__section">
			<h2 class="main__title--h2">项目</h2>
			<b>方法</b>
			<ul class="main__ul--inline">
				<li><a href="#m01">addChild</a></li>
				<li><a href="#m02">addChildAt</a></li>
				<li><a href="#m03">addChildToBack</a></li>
				<li><a href="#m04">isClosed</a></li>
				<li><a href="#m05">isOpen</a></li>
				<li><a href="#m06">move</a></li>
				<li><a href="#m07">removeChild</a></li>
				<li><a href="#m08">removeChildAt</a></li>
				<li><a href="#m09">setCursorRect</a></li>
				<li><a href="#m10">setTone</a></li>
				<li><a href="#m11">update</a></li>
			</ul>

			<b>属性</b>
			<ul class="main__ul--inline">
				<li><a href="#p01">active</a></li>
				<li><a href="#p02">backOpacity</a></li>
				<li><a href="#p03">children</a></li>
				<li><a href="#p04">contents</a></li>
				<li><a href="#p05">contentsOpacity</a></li>
				<li><a href="#p06">downArrowVisible</a></li>
				<li><a href="#p07">height</a></li>
				<li><a href="#p08">margin</a></li>
				<li><a href="#p09">opacity</a></li>
				<li><a href="#p10">openness</a></li>
				<li><a href="#p11">origin</a></li>
				<li><a href="#p12">padding</a></li>
				<li><a href="#p13">parent</a></li>
				<li><a href="#p14">pause</a></li>
				<li><a href="#p15">upArrowVisible</a></li>
				<li><a href="#p16">visible</a></li>
				<li><a href="#p17">width</a></li>
				<li><a href="#p18">windowskin</a></li>
				<li><a href="#p19">x</a></li>
				<li><a href="#p20">y</a></li>
			</ul>
		</div><!-- /main__section -->


		<div class="main__section">
			<h2 class="main__title--h2">方法</h2>

			<div id="m01" class="main__subsection">
<pre class="main__pre--code">
addChild ( child ) <span class="pre__type">Object</span>
</pre>
				<p class="mb10px">向容器添加一个子对象。</p>
				<div class="params">
					<h4>参数：</h4>
					<ul class="params-list">
						<li class="param">
							<code class="param-name">child</code>
							<span class="type">Object</span>
							<div class="param-description">
								<p>要添加的子对象。</p>
							</div>
						</li>
					</ul>
					<h4>返回值：</h4>
					<p><span class="pre__type">Object:</span> <br />
					被添加的子对象。</p>
				</div>
			</div><!-- /div -->

			<div id="m02" class="main__subsection">
<pre class="main__pre--code">
addChildAt ( child  index ) <span class="pre__type">Object</span>
</pre>
				<p class="mb10px">将子对象添加到指定索引位置。</p>
				<div class="params">
					<h4>参数：</h4>
					<ul class="params-list">
						<li class="param">
							<code class="param-name">child</code>
							<span class="type">Object</span>
							<div class="param-description">
								<p>要添加的子对象。</p>
							</div>
						</li>
						<li class="param">
							<code class="param-name">index</code>
							<span class="type">Number</span>
							<div class="param-description">
								<p>欲添加到的位置索引。</p>
							</div>
						</li>
					</ul>
					<h4>返回值：</h4>
					<p><span class="pre__type">Object:</span> <br />
					被添加的子对象。</p>
				</div>
			</div><!-- /div -->

			<div id="m03" class="main__subsection">
<pre class="main__pre--code">
addChildToBack ( child ) <span class="pre__type">Object</span>
</pre>
				<p class="mb10px">添加一个子对象于内容和背景之间。</p>
				<div class="params">
					<h4>参数：</h4>
					<ul class="params-list">
						<li class="param">
							<code class="param-name">child</code>
							<span class="type">Object</span>
							<div class="param-description">
								<p>要添加的子对象。</p>
							</div>
						</li>
					</ul>
					<h4>返回值：</h4>
					<p><span class="pre__type">Object:</span> <br />
					被添加的子对象。</p>
				</div>
			</div><!-- /div -->

			<div id="m04" class="main__subsection">
<pre class="main__pre--code">
isClosed ()
</pre>
				<p class="mb10px">如果窗口被成功关闭（窗口的开启程度为0），则返回 true 。</p>
			</div><!-- /div -->

			<div id="m05" class="main__subsection">
<pre class="main__pre--code">
isOpen ()
</pre>
				<p class="mb10px">如果窗口被成功打开（窗口的开启程度为255），则返回 true 。</p>
			</div><!-- /div -->

			<div id="m06" class="main__subsection">
<pre class="main__pre--code">
move ( x , y , width , height )
</pre>
				<p class="mb10px">同时设置x坐标、y坐标、宽度和高度。</p>
				<div class="params">
					<h4>参数：</h4>
					<ul class="params-list">
						<li class="param">
							<code class="param-name">x</code>
							<span class="type">Number</span>
							<div class="param-description">
								<p>窗口的x坐标。</p>
							</div>
						</li>
						<li class="param">
							<code class="param-name">y</code>
							<span class="type">Number</span>
							<div class="param-description">
								<p>窗口的y坐标。</p>
							</div>
						</li>
						<li class="param">
							<code class="param-name">width</code>
							<span class="type">Number</span>
							<div class="param-description">
								<p>窗口的宽度。</p>
							</div>
						</li>
						<li class="param">
							<code class="param-name">height</code>
							<span class="type">Number</span>
							<div class="param-description">
								<p>窗口的高度。</p>
							</div>
						</li>
					</ul>
				</div>
			</div><!-- /div -->

			<div id="m07" class="main__subsection">
<pre class="main__pre--code">
removeChild ( child ) <span class="pre__type">Object</span>
</pre>
				<p class="mb10px">从容器中移除一个子对象。</p>
				<div class="params">
					<h4>参数：</h4>
					<ul class="params-list">
						<li class="param">
							<code class="param-name">child</code>
							<span class="type">Object</span>
							<div class="param-description">
								<p>要移除的子对象。</p>
							</div>
						</li>
					</ul>
					<h4>返回值：</h4>
					<p><span class="pre__type">Object:</span> <br />
					被移除的子对象。</p>
				</div>
			</div><!-- /div -->

			<div id="m08" class="main__subsection">
<pre class="main__pre--code">
removeChildAt ( index ) <span class="pre__type">Object</span>
</pre>
				<p class="mb10px">移除指定索引处的子对象。</p>
				<div class="params">
					<h4>参数：</h4>
					<ul class="params-list">
						<li class="param">
							<code class="param-name">index</code>
							<span class="type">Number</span>
							<div class="param-description">
								<p>要移除的子对象的索引。</p>
							</div>
						</li>
					</ul>
					<h4>返回值：</h4>
					<p><span class="pre__type">Object:</span> <br />
					被移除的子对象。</p>
				</div>
			</div><!-- /div -->

			<div id="m09" class="main__subsection">
<pre class="main__pre--code">
setCursorRect ( x , y , width , height )
</pre>
				<p class="mb10px">设置光标存放区域。</p>
				<div class="params">
					<h4>参数：</h4>
					<ul class="params-list">
						<li class="param">
							<code class="param-name">x</code>
							<span class="type">Number</span>
							<div class="param-description">
								<p>光标的x坐标。</p>
							</div>
						</li>
						<li class="param">
							<code class="param-name">y</code>
							<span class="type">Number</span>
							<div class="param-description">
								<p>光标的y坐标。</p>
							</div>
						</li>
						<li class="param">
							<code class="param-name">width</code>
							<span class="type">Number</span>
							<div class="param-description">
								<p>光标的宽度。</p>
							</div>
						</li>
						<li class="param">
							<code class="param-name">height</code>
							<span class="type">Number</span>
							<div class="param-description">
								<p>光标的高度。</p>
							</div>
						</li>
					</ul>
				</div>
			</div><!-- /div -->

			<div id="m10" class="main__subsection">
<pre class="main__pre--code">
setTone ( r , g , b )
</pre>
				<p class="mb10px">改变背景的色调。</p>
				<div class="params">
					<h4>参数：</h4>
					<ul class="params-list">
						<li class="param">
							<code class="param-name">r</code>
							<span class="type">Number</span>
							<div class="param-description">
								<p>介于(-255, 255)之间的红色值。</p>
							</div>
						</li>
						<li class="param">
							<code class="param-name">g</code>
							<span class="type">Number</span>
							<div class="param-description">
								<p>介于(-255, 255)之间的绿色值。</p>
							</div>
						</li>
						<li class="param">
							<code class="param-name">b</code>
							<span class="type">Number</span>
							<div class="param-description">
								<p>介于(-255, 255)之间的蓝色值</p>
							</div>
						</li>
					</ul>
					<h4>返回值：</h4>
					<p><span class="pre__type"></span><br />

					</p>
				</div>
			</div><!-- /div -->

			<div id="m11" class="main__subsection">
<pre class="main__pre--code">
update ()
</pre>
				<p class="mb10px">更新窗口。</p>
			</div><!-- /div -->

		</div><!-- /main__section -->


		<div class="main__section">
			<h2 class="main__title--h2">属性</h2>

			<div id="p01" class="main__subsection">
<pre class="main__pre--code">
active <span class="pre__type">Boolean</span>
</pre>
				<p class="mb10px">光标闪烁的状态。</p>
			</div><!-- /div -->

			<div id="p02" class="main__subsection">
<pre class="main__pre--code">
backOpacity <span class="pre__type">Number</span>
</pre>
				<p class="mb10px">窗口背景的不透明度（0~255）。</p>
			</div><!-- /div -->

			<div id="p03" class="main__subsection">
<pre class="main__pre--code">
children <span class="pre__type">Array</span>
</pre>
				<p class="mb10px">[只读]窗口的子对象数组。</p>
			</div><!-- /div -->

			<div id="p04" class="main__subsection">
<pre class="main__pre--code">
contents <span class="pre__type"><a href="01_01.html">Bitmap</a></span>
</pre>
				<p class="mb10px">窗口内容的引用位图。</p>
			</div><!-- /div -->

			<div id="p05" class="main__subsection">
<pre class="main__pre--code">
contentsOpacity <span class="pre__type">Number</span>
</pre>
				<p class="mb10px">窗口内容的不透明度（0~255）。</p>
			</div><!-- /div -->

			<div id="p06" class="main__subsection">
<pre class="main__pre--code">
downArrowVisible  <span class="pre__type">Number</span>
</pre>
				<p class="mb10px">下滚箭头的可见性。</p>
			</div><!-- /div -->

			<div id="p07" class="main__subsection">
<pre class="main__pre--code">
height <span class="pre__type">Number</span>
</pre>
				<p class="mb10px">窗口的高度。</p>
			</div><!-- /div -->

			<div id="p08" class="main__subsection">
<pre class="main__pre--code">
margin <span class="pre__type">Number</span>
</pre>
				<p class="mb10px">窗口的外边距。</p>
			</div><!-- /div -->

			<div id="p09" class="main__subsection">
<pre class="main__pre--code">
opacity <span class="pre__type">Number</span>
</pre>
				<p class="mb10px">窗口的不透明度（0~255）。</p>
			</div><!-- /div -->

			<div id="p10" class="main__subsection">
<pre class="main__pre--code">
openness <span class="pre__type">Number</span>
</pre>
				<p class="mb10px">窗口的开启程度（0~255）。</p>
			</div><!-- /div -->

			<div id="p11" class="main__subsection">
<pre class="main__pre--code">
origin <span class="pre__type">Point</span>
</pre>
				<p class="mb10px">窗口滚动的初始点。</p>
			</div><!-- /div -->

			<div id="p12" class="main__subsection">
<pre class="main__pre--code">
padding <span class="pre__type">Number</span>
</pre>
				<p class="mb10px">窗口框架与内容之间的填充宽度（内边距）。</p>
			</div><!-- /div -->

			<div id="p13" class="main__subsection">
<pre class="main__pre--code">
parent <span class="pre__type">Object</span>
</pre>
				<p class="mb10px">[只读]窗口的父对象。</p>
			</div><!-- /div -->

			<div id="p14" class="main__subsection">
<pre class="main__pre--code">
pause <span class="pre__type">Boolean</span>
</pre>
				<p class="mb10px">暂停标记的可见性。</p>
			</div><!-- /div -->

			<div id="p15" class="main__subsection">
<pre class="main__pre--code">
upArrowVisible <span class="pre__type">Boolean</span>
</pre>
				<p class="mb10px">上滚箭头的可见性。</p>
			</div><!-- /div -->

			<div id="p16" class="main__subsection">
<pre class="main__pre--code">
visible <span class="pre__type">Boolean</span>
</pre>
				<p class="mb10px">窗口的可见性。</p>
			</div><!-- /div -->

			<div id="p17" class="main__subsection">
<pre class="main__pre--code">
width <span class="pre__type">Number</span>
</pre>
				<p class="mb10px">窗口的宽度。</p>
			</div><!-- /div -->

			<div id="p18" class="main__subsection">
<pre class="main__pre--code">
windowskin <span class="pre__type"><a href="01_01.html">Bitmap</a></span>
</pre>
				<p class="mb10px">窗口外观的引用位图。</p>
			</div><!-- /div -->

			<div id="p19" class="main__subsection">
<pre class="main__pre--code">
x <span class="pre__type">Number</span>
</pre>
				<p class="mb10px">窗口的x坐标。</p>
			</div><!-- /div -->

			<div id="p20" class="main__subsection">
<pre class="main__pre--code">
y <span class="pre__type">Number</span>
</pre>
				<p class="mb10px">窗口的y坐标。</p>
			</div><!-- /div -->


		</div><!-- /main__section -->


	</div><!-- /main -->

</body>
</html>
